package com.mach.platform.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 湿式产品卷取品质自主检查记录表
 */
@Data
@Entity
@Table(name = "coiling_quality_wet_products")
public class CoilingQualityWetProducts implements Serializable {

    private static final long serialVersionUID = 1L;
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Id
    private Long id;

    @Column(name = "serial_number")
    private String serialNumber;

    @Column(name = "custom_number")
    private String customNumber;

    @Column(name = "customer")
    private String customer;

    @Column(name = "specifications")
    private String specifications;

    @Column(name = "thickness_standard")
    private String thicknessStandard;

    @Column(name = "thickness_west")
    private String thicknessWest;

    @Column(name = "thickness_east")
    private String thicknessEast;

    @Column(name = "width_standard")
    private String widthStandard;

    @Column(name = "width_measurement")
    private String widthMeasurement;

    @Column(name = "softness_hardness_standard")
    private String softnessHardnessStandard;

    @Column(name = "softness_hardness_measurement")
    private String softnessHardnessMeasurement;

    @Column(name = "surface_quality_flatness_washing")
    private String surfaceQualityFlatnessWashing;

    @Column(name = "surface_quality_colourBar_stain_concaveHole")
    private String surfaceQualityColourBarStainConcaveHole;

    @Column(name = "surface_quality_paste_back")
    private String surfaceQualityPasteBack;

    /**
     * 时间
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "coiling_quality_wet_products_time")
    private LocalDateTime coilingQualityWetProductsTime;

    @Column(name = "section_chief")
    private String sectionChief;

    @Column(name = "shift_supervisor")
    private String shiftSupervisor;

    @Column(name = "foreman")
    private String foreman;

    @Column(name = "procurator")
    private String procurator;

    /**
     * 班别
     */
    @Column(name = "class_ban")
    private String classBan;

}
